async function accessLogMiddleware(ctx, next) {
    ctx.request.startTime = new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' });
    const logData = require('../../util/log4js').accessLogTemplate(ctx);
    require('../../log4')('access').info(logData);
    await next()
}

module.exports = accessLogMiddleware;